projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83ccc32
)
(isearch-text-char-description): Propertize escape
author
Juri Linkov
<juri@jurta.org>
Thu, 10 Sep 2009 00:54:15 +0000
(
00:54
+0000)
committer
Juri Linkov
<juri@jurta.org>
Thu, 10 Sep 2009 00:54:15 +0000
(
00:54
+0000)
character sequences with the `escape-glyph' face. (Bug#4344)
lisp/isearch.el
patch
|
blob
|
history
diff --git
a/lisp/isearch.el
b/lisp/isearch.el
index 30873e8ceebcb879db670062b517b64fc9eaa3a4..752746f09c287a04b9f152ad2ad3c434d67c0951 100644
(file)
--- a/
lisp/isearch.el
+++ b/
lisp/isearch.el
@@
-2496,8
+2496,8
@@
since they have special meaning in a regexp."
(defun isearch-text-char-description (c)
(cond
- ((< c ?\s) (
format "^%c" (+ c 64)
))
- ((= c ?\^?)
"^?"
)
+ ((< c ?\s) (
propertize (format "^%c" (+ c 64)) 'face 'escape-glyph
))
+ ((= c ?\^?)
(propertize "^?" 'face 'escape-glyph)
)
(t (char-to-string c))))
;; General function to unread characters or events.